package com.cn.lyl.dao;

import com.cn.lyl.model.NewsModel;

import java.util.List;

public interface NewsDao {

    int add(NewsModel NewsModel);

    int update(NewsModel NewsModel);

    int delete(NewsModel NewsModel);

    NewsModel findById(int id);

    List<NewsModel> findAll(NewsModel NewsModel);

    NewsModel findNewest();

    int countFindAll(NewsModel newsModel);

    int updateIsHome(NewsModel newsModel);
}
